<template>
  <div id="app">
    <el-container>
      <el-header v-if="$route.name !== '电力组态编辑'">
        <vheader :name="$route.name" />
      </el-header>
      <el-container>
        <!-- 侧边栏 -->
        <!-- <el-aside width="200px">
          <navmenu></navmenu>
        </el-aside> -->

        <!-- 主体 -->
        <el-main class="container">
          <keep-alive>
            <router-view v-if="$route.meta.keepAlive"></router-view>
          </keep-alive>
          <router-view v-if="!$route.meta.keepAlive" />
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>

<script>
import NavMenu from "@/components/NavMenu";
import Header from "@/components/HeaderTitle";
export default {
  name: "app",
  components: {
    navmenu: NavMenu,
    vheader: Header,
  },
};
</script>

<style scoped>
.container {
  background-color: #456e9b;
}
</style>
